package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TConsumptionRecordMapper;
import com.ruoyi.platform.domain.TConsumptionRecord;
import com.ruoyi.platform.service.ITConsumptionRecordService;

/**
 * 用户消费明细记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TConsumptionRecordServiceImpl implements ITConsumptionRecordService 
{
    @Autowired
    private TConsumptionRecordMapper tConsumptionRecordMapper;

    /**
     * 查询用户消费明细记录
     * 
     * @param consumptionRecordId 用户消费明细记录主键
     * @return 用户消费明细记录
     */
    @Override
    public TConsumptionRecord selectTConsumptionRecordByConsumptionRecordId(Long consumptionRecordId)
    {
        return tConsumptionRecordMapper.selectTConsumptionRecordByConsumptionRecordId(consumptionRecordId);
    }

    /**
     * 查询用户消费明细记录列表
     * 
     * @param tConsumptionRecord 用户消费明细记录
     * @return 用户消费明细记录
     */
    @Override
    public List<TConsumptionRecord> selectTConsumptionRecordList(TConsumptionRecord tConsumptionRecord)
    {
        return tConsumptionRecordMapper.selectTConsumptionRecordList(tConsumptionRecord);
    }

    /**
     * 新增用户消费明细记录
     * 
     * @param tConsumptionRecord 用户消费明细记录
     * @return 结果
     */
    @Override
    public int insertTConsumptionRecord(TConsumptionRecord tConsumptionRecord)
    {
        return tConsumptionRecordMapper.insertTConsumptionRecord(tConsumptionRecord);
    }

    /**
     * 修改用户消费明细记录
     * 
     * @param tConsumptionRecord 用户消费明细记录
     * @return 结果
     */
    @Override
    public int updateTConsumptionRecord(TConsumptionRecord tConsumptionRecord)
    {
        return tConsumptionRecordMapper.updateTConsumptionRecord(tConsumptionRecord);
    }

    /**
     * 批量删除用户消费明细记录
     * 
     * @param consumptionRecordIds 需要删除的用户消费明细记录主键
     * @return 结果
     */
    @Override
    public int deleteTConsumptionRecordByConsumptionRecordIds(Long[] consumptionRecordIds)
    {
        return tConsumptionRecordMapper.deleteTConsumptionRecordByConsumptionRecordIds(consumptionRecordIds);
    }

    /**
     * 删除用户消费明细记录信息
     * 
     * @param consumptionRecordId 用户消费明细记录主键
     * @return 结果
     */
    @Override
    public int deleteTConsumptionRecordByConsumptionRecordId(Long consumptionRecordId)
    {
        return tConsumptionRecordMapper.deleteTConsumptionRecordByConsumptionRecordId(consumptionRecordId);
    }
}
